#include <iostream>

#ifdef __APPLE__
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#else
extern char **environ;
#endif
#define _GNU_SOURCE
#include <string.h>

int main() {
    int i;
    //for (char *env = environ[i]; *env != 0; env++) {
    for (i = 0; environ[i] != NULL; i++) {
        if (strcasestr(environ[i], "SESSION_ID") != NULL || strcasestr(environ[i] , "PASSWD") != NULL) {
            continue;
        }
        std::cout << environ[i] << std::endl;
    }
    
    return 0;
}
